-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update retry handler used by Pro Client #1238
Conversation
@jigar-f I'm testing this now, but it would be great if you could start taking a look! |
@atavism I'll give it look tomorrow, thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have created PR #1246 for this fix
* Fix user create api on android. * Fix desktop build issue.
final isLevelPro = userLevel != null && userLevel == 'pro'; | ||
final isStatusPro = userStatus != null && userStatus == 'active'; | ||
if (isLevelPro || isStatusPro) { | ||
sessionModel.proUserNotifier.value = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also need to make sure to set it to false.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just pushed some changes.
@@ -109,44 +107,44 @@ func (app *App) IsProUserFast(uc common.UserConfig) (isPro bool, statusKnown boo | |||
// It loops forever in 10 seconds interval until the user is fetched or | |||
// created, as it's fundamental for the UI to work. | |||
func (app *App) servePro(channel ws.UIChannel) error { | |||
chFetch := make(chan bool) | |||
ctx := context.Background() | |||
go func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@atavism We were creating two users like in android, We don't need this anymore, Since we are creating user in afterStart
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for removing this!
Thanks, looks great to me! Merging.. |
This PR updates the retry handler for user creation, originally implemented for Android, to work across multiple platforms, including desktop